import React, {PropTypes} from 'react'

const propTypes = {
	item: PropTypes.object.isRequired,
	onClick: PropTypes.func.isRequired,
}

function ListItem({item, onClick}){
	return (
		<div onClick={onClick}>
			<span >{item.time}</span>
            <span >{item.title}</span>
		</div>
		);
}

ListItem.propTypes = propTypes;

export default ListItem;